using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Add Tier Group</para>
    /// <para>Adds a tier group to a domain network in a utility network.</para>
    /// <para>将层组添加到公共设施网络中的域网络。</para>
    /// </summary>    
    [DisplayName("Add Tier Group")]
    public class AddTierGroup : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddTierGroup()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network that contains the domain network where the tier group will be added.</para>
        /// <para>包含将添加层组的域网络的公共设施网络。</para>
        /// </param>
        /// <param name="_domain_network">
        /// <para>Domain Network</para>
        /// <para>The name of the domain network to which the tier group will be added. Tier groups can only be added to domain networks that have a hierarchical tier definition.</para>
        /// <para>将层组添加到的域网络的名称。层组只能添加到具有分层层定义的域网络。</para>
        /// </param>
        /// <param name="_name">
        /// <para>Tier Group Name</para>
        /// <para>A unique name for the new tier group. The name can be a maximum of 64 characters in length.</para>
        /// <para>新层组的唯一名称。名称的长度最多为 64 个字符。</para>
        /// </param>
        public AddTierGroup(object _in_utility_network, object _domain_network, object _name)
        {
            this._in_utility_network = _in_utility_network;
            this._domain_network = _domain_network;
            this._name = _name;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Tier Group";

        public override string CallName => "un.AddTierGroup";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _domain_network, _name, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network that contains the domain network where the tier group will be added.</para>
        /// <para>包含将添加层组的域网络的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Domain Network</para>
        /// <para>The name of the domain network to which the tier group will be added. Tier groups can only be added to domain networks that have a hierarchical tier definition.</para>
        /// <para>将层组添加到的域网络的名称。层组只能添加到具有分层层定义的域网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Domain Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _domain_network { get; set; }


        /// <summary>
        /// <para>Tier Group Name</para>
        /// <para>A unique name for the new tier group. The name can be a maximum of 64 characters in length.</para>
        /// <para>新层组的唯一名称。名称的长度最多为 64 个字符。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tier Group Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _name { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public AddTierGroup SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}